import { LoggerConfig } from './LoggerConfig'
import { LoggerLevel } from './LoggerLevel'

/**
 * LogContext
 *
 * @author 冰凝
 * @date 2022/12/17 14:50
 */
export interface LogContext {

    config: LoggerConfig

    /**
     * 全局配置中, 指定名称记录器的日志等级是否启用
     */
    isEnable(name: string, level: LoggerLevel): boolean

    /**
     * 记录日志
     */
    log(name: string, level: LoggerLevel, ...args: Array<any>): void

}
